import Vue from 'vue'
import VueRouter from 'vue-router'
import first from './views/qita/FirstVue.vue'
// 下面是新的
import login from './views/qita/LoginVue.vue'
import Register from './views/qita/RegisterVue.vue'
import pi from './views/qita/productInt.vue'
import ForgotPassword from './views/qita/ForgotPassword.vue'
import out from './views/qita/OutputView.vue'
import dev from './views/qita/DeviceView.vue'
import time from './views/qita/TimeView.vue'
import test from './views/qita/TestVue.vue'
import inf from './views/jiaqi/InformationVue.vue'
import data from './views/jiaqi/DataVue.vue'
import sel from './views/jiaqi/tanhesaun/SelectVue.vue'
import ind from './views/jiaqi/tanhesaun/InData.vue'
import see from './views/jiaqi/tanhesaun/SeeData.vue'
import line from './views/jiaqi/tanhesaun/LineData.vue'
import ce from './views/jiaqi/tanjiaoyi/CE.vue'
import tff from './views/jiaqi/tanjiaoyi/TFF.vue'
import tjy from './views/jiaqi/tanjiaoyi/TJE.vue'
import pv from './views/jiaqi/tanjiaoyi/PersonValue.vue'
import dc from './views/jiaqi/shenheyuan/DataCheck.vue'
import sp from './views/jiaqi/shenheyuan/SP.vue'
import lh from './views/jiaqi/thethird/LoginHeight.vue'
import sa from './views/jiaqi/thethird/SelectAll.vue'
import mlogin from './views/jiaqi/manager/MLogin.vue'
import um from './views/jiaqi/manager/UserManager.vue'
import xt from './views/jiaqi/manager/XT.vue'
import bg from './views/jiaqi/manager/BG.vue'
import zp from './views/jiaqi/ZhePic.vue'
Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect: '/login'
  },
  {
    path:'/first',
    component: first,
    children:[
      {
        path: '/zp',
        name: 'zp',
        component: zp
      },
      {
        path: '/bg',
        name: 'bg',
        component: bg
      },
      {
        path: '/xt',
        name: 'xt',
        component: xt
      },
      {
        path: '/um',
        name: 'um',
        component: um
      },
      {
        path: '/mlogin',
        name: 'mlogin',
        component: mlogin
      },
      {
        path: '/sa',
        name: 'sa',
        component: sa
      },
      {
        path: '/lh',
        name: 'lh',
        component: lh
      },
      {
        path: '/sp',
        name: 'sp',
        component: sp
      },
      {
        path: '/dc',
        name: 'dc',
        component: dc
      },
      {
        path: '/tff',
        name: 'tff',
        component: tff
      },
      {
        path: '/tjy',
        name: 'tjy',
        component: tjy
      },
      {
        path: '/pv',
        name: 'pv',
        component: pv
      },
      {
        path: '/ce',
        name: 'ce',
        component: ce
      },
      {
        path: '/see',
        name: 'see',
        component: see
      },
      {
        path: '/line',
        name: 'line',
        component: line
      },
      {
        path: '/ind',
        name: 'ind',
        component: ind
      },
      {
        path: '/sel',
        name: 'sel',
        component: sel
      },
      {
        path: '/inf',
        name: 'inf',
        component: inf
      },
      {
        path: '/data',
        name: 'data',
        component: data
      },
      {
        path: '/time',
        name: 'time',
        component: time
      },
      {
        path: '/pi',
        name: 'pi',
        component: pi
      },
      {
        path: '/test',
        name: 'test',
        component: test
      },
      {
        path: '/dev',
        name: 'dev',
        component: dev
      },
      {
        path: '/out',
        name: 'out',
        component: out
      },
    ]
  },
  
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/Register',
    name: 'Register',
    component: Register
  },
  {
    path: '/ForgotPassword',
    name: 'ForgotPassword',
    component: ForgotPassword
  },
]


const router = new VueRouter({
  routes
})

export default router



